<%@ page language="java" import="com.alibaba.fastjson.JSONObject" pageEncoding="UTF-8" %>
<%@ page import="weaver.conn.RecordSet" %>
<%@ page import="weaver.general.Util" %>
<%--获取流水号--%>
<%
    RecordSet rs = new RecordSet();
    JSONObject jsonData = new JSONObject();
    String docid = Util.null2String( request.getParameter( "docid" ) );
    String sql = "select count(id) from docdetail where id='" + docid + "' and secretLevel='1'";
    rs.executeQuery( sql );
    rs.next();
    int counts = Util.getIntValue( rs.getString( 1 ) );
    boolean flag = counts>0?true:false;
    jsonData.put( "flag", flag );
    out.print( jsonData.toJSONString() );

%>
